package com.cash.channel.svc.service.api;

import com.cash.channel.api.constant.Constant;
import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.response.RepayPlanListResponse;
import com.cash.channel.api.service.BaseApi;
import com.cash.channel.svc.service.base.RepayPlanList;
import com.cash.channel.svc.util.ServiceUtils;
import org.springframework.stereotype.Service;

@Service("repayPlanList")
public class CJH000015 implements BaseApi<RepayPlanListResponse> {

    @Override
    public ApiResponseModel<RepayPlanListResponse> doProcess(ApiRequestModel apiRequestModel) throws CashChannelException {
        RepayPlanList repayPlanList = ServiceUtils.getBean(apiRequestModel.getInterfaceType()+ Constant.SERVICE.查询还款计划, RepayPlanList.class);
        return repayPlanList.getRepayPlanList(apiRequestModel);
    }

}
